Skip to content

transformers: add host kernel boot parameters transformer#4502

Open
vyadavmsft wants to merge 1 commit into
mainfrom
feature/host-kernel-boot-parameters
Open

transformers: add host kernel boot parameters transformer#4502
vyadavmsft wants to merge 1 commit into
mainfrom
feature/host-kernel-boot-parameters

Conversation

@vyadavmsft
Copy link
Copy Markdown
Collaborator

Add a new transformer that applies custom kernel boot parameters to the host (Dom0) kernel cmdline and reboots to activate them.

Register the transformer in mixin_modules so LISA's reflection-based factory can discover it at runtime.

The transformer validates each name=value token before calling GrubConfig.set_kernel_cmdline_arg, then reboots the node with the configured timeout.

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

Add a new transformer that applies custom kernel boot parameters to the host (Dom0) kernel cmdline and reboots to activate them.

Register the transformer in mixin_modules so LISA's reflection-based factory can discover it at runtime.

The transformer validates each name=value token before calling GrubConfig.set_kernel_cmdline_arg, then reboots the node with the configured timeout.
Copilot AI review requested due to automatic review settings May 29, 2026 18:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a deployment transformer that configures host kernel boot parameters through GrubConfig, reboots the node to activate them, and registers the transformer for runtime discovery.

Changes:

  • Introduces host_kernel_boot_parameters transformer schema and implementation.
  • Parses and validates whitespace-separated name=value kernel parameter tokens.
  • Registers the transformer in mixin_modules.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lisa/transformers/host_kernel_boot_parameters.py Adds the new transformer that applies boot parameters and reboots the node.
lisa/mixin_modules.py Imports the transformer so the reflection factory can discover it.

Comment thread lisa/transformers/host_kernel_boot_parameters.py
@github-actions
Copy link
Copy Markdown

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
smoke_test (lisa_0_0) ✅ PASSED 30.036

f"Rebooting after setting host kernel boot parameters "
f"(timeout: {runbook.reboot_timeout}s)"
)
self._node.reboot(time_out=runbook.reboot_timeout)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check whether the parameters are set properly?

@LiliDeng
Copy link
Copy Markdown
Collaborator

LiliDeng commented Jun 2, 2026

Write the doc for the transformer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants